import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AuthorComponent } from './author/author.component';
import { BannerComponent } from './banner/banner.component';
import { LuckdrawComponent } from './luckdraw/luckdraw.component';
import { InvitationawardComponent } from './invitationaward/invitationaward.component';
import { SysuerlistComponent } from './sysuerlist/sysuerlist.component';
import { InverhistoryComponent } from '../manage/inverhistory/inverhistory.component';
import { WinemanageComponent } from './winemanage/winemanage.component';
import { MembershipComponent } from './membership/membership.component';

/** 平台管理 */
const routes: Routes = [
    { path: 'sysuser', component: SysuerlistComponent }, // 平台用户管理
    { path: 'author', component: AuthorComponent }, // 权限管理
    { path: 'banner', component: BannerComponent }, // Banner设置
    { path: 'luckdraw', component: LuckdrawComponent }, // 抽奖设置
    { path: 'invitationaward', component: InvitationawardComponent }, // 邀请奖励设置
    { path: 'inverhistory/:id', component: InverhistoryComponent }, // 邀请记录
    { path: 'winemanage', component: WinemanageComponent }, // 酒水管理
    { path: 'membership', component: MembershipComponent }, // 会员管理
];

@NgModule({
    imports: [RouterModule.forRoot([{ path: 'sysset', children: routes }], { useHash: true })],
    exports: [RouterModule]
})

export class SyssetRouting {

}
